package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.entity.AiForecastPO;
import com.jdrx.sw.sewage.beans.vo.AiForecastVO;
import com.jdrx.sw.sewage.beans.vo.AiForecastWeeklyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface AiForecastDAO {

    void batchInsert(List<AiForecastPO> list);

    void batchUpdate(List<AiForecastPO> list);

    List<AiForecastVO> findCarbonSourceForecast(@Param("parentName") String parentName);

    AiForecastPO fingByCrr(@Param("ymdh") LocalDateTime ymdh,
                           @Param("modelCode") String modelCode);

    List<AiForecastVO> findWeekCarbonSourceForecast(@Param("crTime") LocalDateTime crTime,
                                                    @Param("parentName") String parentName);

    AiForecastWeeklyVO findConclusion(@Param("parentName") String parentName);

    Double findElectricQuantity(@Param("startTime") String startTime, @Param("endTime") String endTime);
}